﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.ComponentModel;
using System.Security.Permissions;


namespace XControl
{
    [DataBindingHandler("System.Web.UI.Design.WebControls.ListControlDataBindingHandler, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"), DefaultEvent("SelectedIndexChanged"), ParseChildren(true, "Items"), Designer("System.Web.UI.Design.WebControls.ListControlDesigner, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"), ControlValueProperty("SelectedValue"), AspNetHostingPermission(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal), AspNetHostingPermission(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
    public class DropDownListControl:ListControl
    {
        /// <summary>获取或设置为列表项提供文本内容的数据源字段。</summary>
        /// <returns>指定为列表项提供文本内容的数据源字段的 <see cref="T:System.String" />。默认值为 <see cref="F:System.String.Empty" />。</returns>
        //[Bindable(true)]
        //[Category("高级属性")]
        //[Description("获取或设置用来绑定下拉列表的选中项，用于模板控件中绑定数据，无须在代码中另外设置。仅用在绑定数据中有效")]
        //[Localizable(true)]
        [DefaultValue(""), WebCategory("Data"), WebSysDescription("ListControl_DataEnableSelectField"), Themeable(false)]
        public virtual string DataEnableSelectField
        {
            get
            {
                object obj2 = this.ViewState["DataValueField"];
                if (obj2 != null) return (string)obj2;
                return string.Empty;
            }
            set
            {
                this.ViewState["DataValueField"] = value;
                if (base.Initialized) base.RequiresDataBinding = true;
            }
        }
        


    }
}
